package cn.com.surker.system.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单操作角色控制表
 * </p>
 *
 * @author admin
 * @since 2024-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysMenuRoleController extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 菜单ID
     */
    private Long menuId;

    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 新增权限(0:无1:有)
     */
    private Integer isInsert;

    /**
     * 修改权限(0:无1:有)
     */
    private Integer isUpdate;

    /**
     * 删除权限(0:无1:有)
     */
    private Integer isDelete;

    public SysMenuRoleController(Long menuId, Long roleId, Integer isInsert, Integer isUpdate, Integer isDelete) {
        this.menuId = menuId;
        this.roleId = roleId;
        this.isInsert = isInsert;
        this.isUpdate = isUpdate;
        this.isDelete = isDelete;
    }
    public SysMenuRoleController(){}
}
